<?php
/**
 * Created by PhpStorm.
 * User: Edward
 * Date: 2019/6/3
 * Time: 10:17
 */

namespace app\Validate;


class NewsValidate extends BaseValidate {
    protected $rule = [
        'title' => 'require',
        'category_id' => 'require|number',
        'content' => 'require',
        'cover_img'=>'require',
        'sort' => 'require|number'
    ];
    protected $message = [
        'title' => '资讯标题',
        'category_id' => '分类id',
        'content'=>'资讯内容',
        'cover_img'=>'资讯标题图',
        'sort'=>'排序号'
    ];
}